﻿@model Fish.Models.Supplies

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>


@using (Html.BeginForm()) 
{
    @Html.AntiForgeryToken()
    
    <div class="form-horizontal">
        <h4>Supplies</h4>
        <hr />
        @Html.ValidationSummary(true)

        <div class="form-group">
            @Html.LabelFor(model => model.Name, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.Name)
                @Html.ValidationMessageFor(model => model.Name)
            </div>
        </div>

        <div class="form-group" >
            @Html.LabelFor(model => model.Quantity, "Quantity Needed", new { @class = "control-label col-md-2" })
            <div class="col-md-10" >
                @Html.EditorFor(model => model.Quantity)
                @Html.ValidationMessageFor(model => model.Quantity)
            </div>
        </div>

        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input name="button" type="submit" value="finish" class="btn btn-default" style="margin-left:187px;" />
                <input name="button" type="submit" value="add" class="btn btn-default" style="float:left" />

            </div>

        </div>

        </div>
<div>
    @Html.ActionLink("Back to Event", "currentEvent", "EventInfo")
</div>
}


@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
